<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./../jquery-1.12.4.js"></script>
</head>

<body>
    <span class="span1" name="abc"></span>
    <span class="span2"></span>
    <script>
        /*
        console.log($('span').attr('class'));
        $('span').attr('class', 'asd');
        $('span').attr('hd', 'xyz');
        */
        $('span').removeAttr('class name');
    </script>
</body>

</html>